package com.hwl.lab.repository;

import com.hwl.lab.entity.Role;
import org.springframework.data.jpa.repository.JpaRepository;

import javax.transaction.Transactional;
import java.util.List;

public interface RoleRepository extends JpaRepository<Role,Long> {
    @Transactional
    Role findByRoleid(String roleid);
    @Transactional
    Role findByRolename(String rolename);
}
